#include "AIManager.h"
#include "Error.h"
#include "Agent.h"

namespace Engine
{
	void AIManager::RegisterAIAgent(Agent* agent)
	{
		auto it = m_map.find(agent ->GetGameObjectID());
		if(it != m_map.end())
			return;

		m_map[agent ->GetGameObjectID()] = agent;
	}

	void AIManager::UnregisterAIAgent(unsigned int id)
	{
		auto it = m_map.find(id);
		if(it == m_map.end())
			return;

		m_map.erase(it);
	}
}